﻿using RpcModel;

using Wedonek.RpcStore.Service.Model;

namespace Wedonek.RpcStore.Service.Interface
{
    public interface IServerCollect
    {
        void SetState(ServerConfigDatum config, RpcServiceState state);
        ServerConfigDatum[] Gets(long[] ids);
        long Add(ServerConfigAddParam add);
        bool CheckIsExists(long sysTypeId);
        bool CheckIsOnline(long id);
        void CheckServerPort(string mac, int serverPort);
        void Delete(ServerConfigDatum server);
        ServerConfigDatum Get(long id);
        ServerConfigDatum[] Query(QueryServiceParam query, IBasicPage paging, out long count);
        void Set(ServerConfigDatum config, ServerConfigSetParam set);
        bool CheckIsExistsByGroup(long groupId);
        bool CheckRegion(int regionId);
        BasicService[] GetBasic(long[] ids);
    }
}